package com.example.demo5;

import java.io.*;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import javax.servlet.annotation.*;

@WebServlet("/Servlet")
public class HelloServlet extends HttpServlet {
    private String message;


@Override
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
        String username = request.getParameter("username");

        response.setContentType("text/html");
        request.setAttribute("username",username);
        request.getRequestDispatcher("123.jsp").forward(request, response);


    }


}